
//BEGIN_INCLUDE(all)
#include <jni.h>
#include <errno.h>
#include <unistd.h>
#include <android_native_app_glue.h>

#include <spriteViewerProgram.h>

bool gHold = true;

void android_main(struct android_app* state) {
     // Make sure glue isn't stripped.
    app_dummy();

#if 0
    while (gHold)
    {
    	int x = 0;
    	x++;
    }
    //usleep(20000);
#endif

    SpriteViewerProgram* pProgram = new SpriteViewerProgram();
    pProgram->SetAndroidApp(state);
    pProgram->Init();
    pProgram->Run();
    delete pProgram;
}
//END_INCLUDE(all)
